#import <stdio.h>
#import "cat.h"

int main(int argc, const char *argv[])
{
    Cat *myCat = [[Cat alloc] init];

    [myCat setWeight: 5.0];
    [myCat meau];
    [myCat setPosX: 2.0 setPosY: 3.0];

    printf("my cat weight is %1f\n", [myCat getWeight]);
    printf("my cat pos is X:%1f Y: %1f\n", [myCat getPosX], [myCat getPosY]);

    Cat *otherCat = [[Cat alloc] init];
    [otherCat setWeight: 8.0];

    Cat *littleCat;

    littleCat = [myCat reproduce: otherCat];
    [littleCat meau];
    printf("the little cat weight is  %1f\n", [littleCat getWeight]);
   
    [myCat free];
    [otherCat free];
    [littleCat free];

    return 0;
}
